Package-level declarations

Types

Link copied to clipboard

Common field types.

Link copied to clipboard
data class DocumentProperties(val defaultDisplayText: String) : Parcelable

Document metadata container

Link copied to clipboard
data class Field(val type: FieldType, val value: OcrResult?, val confidenceWeight: Double = 1.0, val image: ImageRef? = null, val polygonInRoot: List<PointF>, val validationStatus: FieldValidationStatus = FieldValidationStatus.NONE, val parsedData: List<FieldParsedData> = listOf( )) : AutoCloseable, Parcelable

Generic document field.

Link copied to clipboard

Type of parsing applied to field.

Link copied to clipboard
data class FieldParsedData(val type: FieldDataFormat, val value: String) : Parcelable

Parsed data.

Link copied to clipboard
data class FieldProperties(val defaultDisplayText: String, val defaultDisplayState: FieldProperties.DisplayState) : Parcelable

Field metadata container.

Link copied to clipboard
data class FieldType(val name: String, val fullName: String, val normalizedName: String, val commonType: CommonFieldType?, val listIndex: Int? = null) : Parcelable

Generic Document Type.

Link copied to clipboard

Field validation status.

Link copied to clipboard
open class FieldWrapper(field: Field)

Non-text field wrapper

Link copied to clipboard
data class GenericDocument(val type: GenericDocumentType, val fields: List<Field>, val children: List<GenericDocument>, val quad: List<PointF>, val quadInRoot: List<PointF>, val crop: ImageRef? = null, val confidence: Double = 0.0, val confidenceWeight: Double = 0.0) : AutoCloseable, Parcelable

Generic document.

Link copied to clipboard
data class GenericDocumentType(val name: String, val fullName: String, val normalizedName: String, val listIndex: Int? = null) : Parcelable

Generic Document Type.

Link copied to clipboard
open class GenericDocumentWrapper(val document: GenericDocument)

Base class for strongly-typed GenericDocument wrappers

Link copied to clipboard
data class OcrResult(val text: String, val confidence: Double) : Parcelable

Result of OCR text recognition.

Link copied to clipboard
open class TextFieldWrapper(field: Field) : FieldWrapper

Text field wrapper

Functions

Link copied to clipboard

Returns a sub-document given its document type name. Returns null if not found.

Link copied to clipboard

Returns all children given their document type name.

Link copied to clipboard

Returns a field given its local or common type name. Returns null if not found.

Link copied to clipboard

Returns all fields given a local or common field type name.